package com.example.redisdemo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @ProjectName: redisdemo
 * @Package: com.example.redisdemo.entity
 * @ClassName: Record
 * @Author: zlx
 * @Description:
 * @Date: 2022/6/18 0:36
 * @Version: 1.0
 */
@Data
@TableName("s_record")
public class Record {

    private static final long serialVersionUID=1L;

    /**
     * 记录ID
     */
    @TableId("RECORD_ID")
    private String recordId;

    /**
     * 记录编码
     */
    @TableField("RECORD_CODE")
    private String recordCode;

    /**
     *  记录内容
     */
    @TableField("RECORD_CONTENT")
    private String recordContent;

    /**
     *  创建时间
     */
    @TableField("CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createTime;

    /**
     *  更新时间
     */
    @TableField("UPDATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime updateTime;
}
